package com.example.invoicing.service;

import com.example.invoicing.dao.UserMapper;
import com.example.invoicing.pojo.InboundOutbound;
import com.example.invoicing.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public int deleteByPrimaryKey(String id){
        return userMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(User record){
        return userMapper.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(User record){
        return userMapper.updateByPrimaryKeySelective(record);
    }

    public User selectByPrimaryKey(String id){
        return userMapper.selectByPrimaryKey(id);
    }

    public User getByUser(User record){
        return userMapper.selectUser(record);
    }

    public List<User> getAllUserList(User record){
        return userMapper.getAllUserList(record);
    }

    public int queryCountLike(User record){
        return userMapper.queryCountLike(record);
    }




}
